<template>
    <div>
        <mt-swipe :auto="4000" class="mint-swipe">
            <mt-swipe-item v-for="item in product_list " :key="item.name">
                <img :src="item.url" :alt="item.name">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>
<script>
import axios  from 'axios'
    export default {
        components: {
        },
        data(){
            return{
                product_list:[]
            }
        },
        props: [
            'swipelist'
        ],
        mounted (){
           
        },
        watch:{
            "swipelist":function(newVal){
                this.product_list = newVal;
                console.log(newVal);
            }
        }
    }
</script>
<style lang="less" scoped>
   .mint-swipe{
        height: 200px;
        .mint-swipe-item{
            img{
                max-width: 100%;
            }
        }
    }
</style>